package org.budo.dubbo.protocol.http.aop.permission.user;

import java.io.Serializable;
import java.lang.reflect.Method;

/**
 * @author lmw
 */
public interface UserPermissionCheckService {
    void handlePermissionFailed(Serializable authenticationPrincipal, String permissionName);

    Boolean hasPermission(Serializable authenticationPrincipal, String permissionName);

    String permissionName(Method method);

    void handleAuthFailed(Method method, Serializable authenticationPrincipal);
}